package com.little.test.client.springmvc;

import com.little.test.api.IHello2;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

/**
 * Created by ChengPeng on 2017/6/26.
 */
@Controller
public class RpcController {

    @Autowired
    private IHello2 bb;

    @RequestMapping("/testRpc")
    @ResponseBody
    public String index() {
        StringBuffer sb = new StringBuffer();
        for(int i = 0;i<20;i++) {
            sb.append(bb.doubleNum(i) + ":");
        }
        return  sb.toString();
    }


}
